/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package eit.dao.rowmapper;

import eit.model.Project;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

/**
 *
 * @author acoustic
 */
public class ProjectRowMapper implements RowMapper
{
	@Override
	public Object mapRow(ResultSet resultSet, int i) throws SQLException
	{
		Project queryProject = new Project() ;
		
			queryProject.setID(resultSet.getInt("ID"));
			queryProject.setName(resultSet.getString("Title"));
		
		return queryProject ;
	}
	
}
